/*
 * LtxPrototypeAboutBox.java
 */

package com.meraklisina.latex ;

import org.jdesktop.application.Action ;

public class LtxPrototypeAboutBox extends javax.swing.JDialog
{

    public LtxPrototypeAboutBox( java.awt.Frame parent )
    {
        super( parent ) ;
        initComponents( ) ;
        getRootPane( ).setDefaultButton( closeButton ) ;
    }

    @Action
    public void closeAboutBox( )
    {
        dispose( ) ;
    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents( )
    {

        closeButton = new javax.swing.JButton( ) ;
        javax.swing.JLabel appTitleLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel versionLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel appVersionLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel homepageLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel appHomepageLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel appDescLabel = new javax.swing.JLabel( ) ;
        javax.swing.JLabel imageLabel = new javax.swing.JLabel( ) ;

        setDefaultCloseOperation( javax.swing.WindowConstants.DISPOSE_ON_CLOSE ) ;
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance( com.meraklisina.latex.LtxPrototypeApp.class ).getContext( ).getResourceMap( LtxPrototypeAboutBox.class ) ;
        setTitle( resourceMap.getString( "title" ) ) ; // NOI18N
        setBackground( java.awt.Color.white ) ;
        setCursor( new java.awt.Cursor( java.awt.Cursor.DEFAULT_CURSOR ) ) ;
        setModal( true ) ;
        setName( "aboutBox" ) ; // NOI18N
        setResizable( false ) ;

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance( com.meraklisina.latex.LtxPrototypeApp.class ).getContext( ).getActionMap( LtxPrototypeAboutBox.class, this ) ;
        closeButton.setAction( actionMap.get( "closeAboutBox" ) ) ; // NOI18N
        closeButton.setBorder( javax.swing.BorderFactory.createEtchedBorder( ) ) ;
        closeButton.setName( "closeButton" ) ; // NOI18N

        appTitleLabel.setFont( appTitleLabel.getFont( ).deriveFont( appTitleLabel.getFont( ).getStyle( ) | java.awt.Font.BOLD, appTitleLabel.getFont( ).getSize( ) + 4 ) ) ;
        appTitleLabel.setText( resourceMap.getString( "Application.title" ) ) ; // NOI18N
        appTitleLabel.setName( "appTitleLabel" ) ; // NOI18N

        versionLabel.setFont( versionLabel.getFont( ).deriveFont( versionLabel.getFont( ).getStyle( ) | java.awt.Font.BOLD ) ) ;
        versionLabel.setText( resourceMap.getString( "versionLabel.text" ) ) ; // NOI18N
        versionLabel.setName( "versionLabel" ) ; // NOI18N

        appVersionLabel.setText( resourceMap.getString( "Application.version" ) ) ; // NOI18N
        appVersionLabel.setName( "appVersionLabel" ) ; // NOI18N

        homepageLabel.setFont( homepageLabel.getFont( ).deriveFont( homepageLabel.getFont( ).getStyle( ) | java.awt.Font.BOLD ) ) ;
        homepageLabel.setText( resourceMap.getString( "homepageLabel.text" ) ) ; // NOI18N
        homepageLabel.setName( "homepageLabel" ) ; // NOI18N

        appHomepageLabel.setText( resourceMap.getString( "Application.homepage" ) ) ; // NOI18N
        appHomepageLabel.setName( "appHomepageLabel" ) ; // NOI18N

        appDescLabel.setText( resourceMap.getString( "appDescLabel.text" ) ) ; // NOI18N
        appDescLabel.setName( "appDescLabel" ) ; // NOI18N

        imageLabel.setIcon( resourceMap.getIcon( "imageLabel.icon" ) ) ; // NOI18N
        imageLabel.setName( "imageLabel" ) ; // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout( getContentPane( ) ) ;
        getContentPane( ).setLayout( layout ) ;
        layout.setHorizontalGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGroup( layout.createSequentialGroup( ).addComponent( imageLabel ).addGap( 18, 18, 18 ).addGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGroup( layout.createSequentialGroup( ).addComponent( versionLabel ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addComponent( appVersionLabel ).addComponent( appHomepageLabel ) ).addGap( 38, 38, 38 ) ).addComponent( appDescLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE ).addComponent( closeButton, javax.swing.GroupLayout.Alignment.TRAILING ).addComponent( appTitleLabel ).addComponent( homepageLabel ) ).addContainerGap( ) ) ) ;
        layout.setVerticalGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGroup( layout.createSequentialGroup( ).addContainerGap( ).addComponent( appTitleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addComponent( appDescLabel ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE ).addComponent( versionLabel ).addComponent( appVersionLabel ) ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addComponent( homepageLabel ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addComponent( appHomepageLabel ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE ).addComponent( closeButton ).addContainerGap( ) ).addComponent( imageLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE ) ) ;

        pack( ) ;
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton closeButton ;
    // End of variables declaration//GEN-END:variables

}
